<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('accept_award', function (Blueprint $table) {
            $table->id();
            $table->integer('record_id')->unsigned()->nullable(false)->comment('抽奖记录id');
            $table->integer('award_id')->unsigned()->nullable(false)->comment('奖品id');
            $table->char('mobile', 11)->comment('电话');
            $table->string('address', 128)->comment('地址');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('accept_award');
    }
};
